
package at.fhj.itm.metadata.impl;

import at.fhj.itm.metadata.MetadataItem;

/**
 *
 * @author Seuchter
 */
public abstract class AbstractMetadataItem implements MetadataItem {

    protected String name;

    public AbstractMetadataItem(final String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name){
        this.name = name;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final AbstractMetadataItem other = (AbstractMetadataItem) obj;
        if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 53 * hash + (this.name != null ? this.name.hashCode() : 0);
        return hash;
    }

    

}
